package com.code.day02;

public class YunSuan {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a+b);
        System.out.println(a-b);
        System.out.println(a*b);
        System.out.println(a/b);
        System.out.println(a%b);
//        +遇到字符串就是拼接符号,直接往后拼接内容
        System.out.println(a+b+""); //30
        System.out.println(a+""+b);
        System.out.println(""+a+b); //1020

        int sum = a+b;
        System.out.println("sum = " + sum);


        int i =10;
        i++;
        System.out.println(i);

        int k =10;
        int y =20;
        int result = k++ + ++y;
        System.out.println(result);

        int j =10;
        j+=2;
        System.out.println(j);
        j-=2;
        System.out.println(j);

        byte d=10;
        d+=2;
        d=(byte) (d+2);
        System.out.println(d);
    }



}
